home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / handson / supercede / Knowodys / Projects / mq_projects.exe / MindQ_Projects / Syntax / Calendar / findstart.txt next >
Encoding:
Text File  |  1997-08-14  |  1.2 KB  |  43 lines

  1. Instructions for finding the day of the week on which a date occured:
  2.  
  3. To find the day of the week on which a day in the 20th century occured, follow this procedure:
  4.  
  5. 1.  Take the last two digits of the year:______
  6.  
  7. 2.  Divide the answer above by 4 and discard the remainder if any:________
  8.  
  9. 3.  Find the number associated with the month in the table of months below:_______
  10.  
  11. 4.  Sum the answers to the first three steps then add the number for the day of the month.
  12.  
  13. 5.  Find the remainder when the answer to step 4 is divided by 7.  Look this number up in the Table of Days to find the day of the week.
  14.  
  15.  
  16. Table of Months:                Table of Days:
  17.  
  18. January:     1 (0 in leap year)    Sunday:    1
  19. February:    4 (3 in leap year)    Monday:    2
  20. March:    4                Tuesday:    3
  21. April:    0                Wednesday:    4
  22. May:        2                Thursday:    5
  23. June:        5                Friday:    6
  24. July        0                Saturday:    0
  25. August:    3
  26. September:    6
  27. October:    1
  28. November:    4
  29. December:    6
  30.  
  31.  
  32. Example:  22 September, 1969
  33.  
  34. Step 1:  69
  35.  
  36. Step 2:  69/4 = 17 (fractional part is discarded)
  37.  
  38. Step 3:  September -> 6 in the Table of Months
  39.  
  40. Step 4:  69 + 17 + 6 + 22 = 114
  41.  
  42. Step 5:  114/7 = 13 with a remainder of 2 so, after looking at the Table of Days, we know that 22 September, 1969 was a Monday.
  43.